﻿@model List<OAuth2AuthorizerDemo.Models.OAuthProvider>
@{
    ViewBag.Title = "OAuth2 Demo";
}

<h2>Get Access Code</h2>

@foreach (var provider in Model)
{
    <div>
        <a href="@provider.RegisterUrl">Register with @provider.Name</a>
        @if (!string.IsNullOrEmpty(@provider.AccessCode))
        {
            <span>Access code: @provider.AccessCode</span>
        }
    </div>
}